package com.iscas.dataaggregation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.iscas.dataaggregation.domain.experiment.OtelLogs;
import com.iscas.dataaggregation.mapper.clickhouse.OtelLogsMapper;
import com.iscas.dataaggregation.service.OtelLogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
* @author mj
* @description 针对表【otel_logs】的数据库操作Service实现
* @createDate 2024-11-24 16:13:49
*/
@Service
public class OtelLogsServiceImpl extends ServiceImpl<OtelLogsMapper, OtelLogs>
    implements OtelLogsService {

    @Autowired
    private OtelLogsMapper otelLogsMapper;

    @Override
    public List<OtelLogs> findLogsByTimeRange(Date startTime, Date endTime) {
        return otelLogsMapper.findLogsByTimeRange(startTime, endTime);
    }
}




